package cn.by.wms.dao;

import java.util.List;

import cn.smart.core.annotation.PageX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import cn.by.wms.entity.*;
import org.apache.ibatis.annotations.Update;

/**
 * 库存批次;(206_inventory_batch)表数据库访问层
 * @author : heimi
 * @date : 2024-11-29
 */
@Mapper
public interface InventoryBatchDao {
 
    @PageX
    List<InventoryBatch> select(InventoryBatchQuery query);
    Integer insert(InventoryBatch inventoryBatch);
    Integer insertBatch(@Param("inventoryBatchs")List<InventoryBatch> inventoryBatchs);
    Integer update(InventoryBatch inventoryBatch);
    Integer delete(Integer id);

    Integer updateQty(@Param("optionQty")int optionQty,@Param("batchId")String batchId,@Param("version") int version);
 
}